/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.top-nav h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.back-btn, .help-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
}

/* 搜索栏 */
.search-bar {
    position: relative;
    margin-bottom: 30px;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

/* 日期选择 */
.date-scroll {
    display: flex;
    overflow-x: auto;
    margin: 20px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.date-scroll::-webkit-scrollbar {
    height: 5px;
}

.date-scroll::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 5px;
}

.date-scroll div {
    margin: 0 10px;
    padding: 10px 15px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.date-scroll div.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.date-scroll div:hover {
    transform: scale(1.05);
}

/* 科室选择 */
.department-section {
    margin-bottom: 30px;
}

.department-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.department-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.department-item:hover {
    transform: translateY(-2px);
}

.department-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 8px;
}

.department-item span {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* 医生列表 */
.doctor-list h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.doctor-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.doctor-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.doctor-info {
    flex: 1;
}

.doctor-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.doctor-info .title {
    color: #7f8c8d;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.doctor-info .specialty {
    color: #95a5a6;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.rating {
    color: #f1c40f;
    font-size: 0.9rem;
}

.rating span {
    color: #7f8c8d;
    margin-left: 5px;
}

.appointment-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.appointment-btn:hover {
    background-color: #2980b9;
}

/* 预约弹窗 */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #95a5a6;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background-color: #f8f9fa;
}

.time-slot.selected {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: none;
    cursor: pointer;
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
}

.confirm-btn:hover {
    background-color: #2980b9;
} 